package com.leung;


import com.leung.dubbo.IDemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @author 丨一
 * @version 1.0
 * @title Application
 * @description:
 * @date 2025/7/15 上午11:18
 */

@EnableDubbo
@SpringBootApplication
public class Application {

    @DubboReference
    private IDemoService demoService;

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @PostConstruct
    public void test() {
        System.out.println(demoService.test());
    }


}
